import request from '@/utils/request'

// 工单明细查询接口   
export const selectProductionListApi = (data) => {
    return request({
        url: '/system/work/selectProductionList',
        method: 'get',
        params:data
    })
}

//  生成工费凭证
export const createVoucherInstallApi = (data) => {
    return request({
        url: '/system/work/createVoucherInstall',
        method: 'get',
        params:data
    })
}

//  明细生成凭证   
export const createVoucherApi = (data) => {
    return request({
        url: '/system/work/createVoucher',
        method: 'get',
        params:data
    })
}
// 工单多选生成凭证
export const createVoucherOrdersApi = (data) => {
    return request({
        url: '/system/work/createVoucherOrders',
        method: 'get',
        params:data
    })
}

//查询总金额
export const selectTotalAmountApi = (data) => {
    return request({
        url: '/system/work/selectAmount',
        method: 'get',
        params: data
    })
}
//保存备注
export const updateOrderCaiWuApi = (data) => {
    return request({
        url: '/system/work/updateOrderCaiWu',
        method: 'put',
        data
    })
}
